class Food {
    element: HTMLElement;
    constructor() {
        this.element = document.getElementById('food')!;
    }
    get X() {
        return this.element.offsetLeft;
    }
    get Y() {
        return this.element.offsetTop;
    }
    change() {
        var x = Math.round(Math.round(Math.random() * 10) / 100 * 290) * 10;
        var y = Math.round(Math.round(Math.random() * 10) / 100 * 290) * 10;
        this.element.style.left = `${x}px`;
        this.element.style.top = `${y}px`;
    }
}
export default Food;